﻿namespace D.WebApi.Core.Models
{
    public class IdentityServerStoreOptions
    {
        /// <summary>
        /// 是否启用自定清理Token ,默认启动
        /// </summary>
        public bool EnableTokenCleanup { get; set; } = true;

        /// <summary>
        /// 清理token周期（单位秒），默认1小时
        /// </summary>
        public int TokenCleanupInterval { get; set; } = 3600;

        /// <summary>
        /// 获取或设置一次要删除的记录数。默认为100
        /// </summary>
        public int TokenCleanupBatchSize { get; set; } = 100;
    }
}
